module framework.JobHub;

JobHub _jobHub;

import std.stdio;

static this(){
	_jobHub=new JobHub();
}

JobHub jobHub(){
	return _jobHub;
}

class JobHub{
	private void delegate()[] dels;
	
	void register(void delegate() del){
			dels~=del;
	}
	
	void work(){
		while(true){
			foreach(del;dels){
				del();
			}
		}
	}
}